<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<script src="js/jquery.min.js"></script>
	</head>
	<body>
		<div class="">
			
		</div>
		<div id="">
			
		</div>
	</body>
	<script>
		alert(123);
		// jquery 提供 Ajax，参数是一个js对象{}
		$.ajax({
			type:"POST",
			url:"https://p.3.cn/prices/mgets",
			data:{
				"skuIds":"J_10005185603"
			},
			contentType:"application/json;charset=utf-8",
			dataType:"jsonp",
			success:function(data){
				console.log("访问成功");
				console.log(data);
				console.log(data.length);
				console.log(data[0].size);
				var i=0;
				while(i<data.length){
					console.log(data[i]);
					i=i+1;
				}
				var keys = data[0].getAllKeys();
					console.log(keys);
			},
			error:function(e){
				console.log("访问失败")
			}
		})
	</script>
</html>
